package com.thesis.dao;

import com.github.pagehelper.Page;
import com.thesis.entity.Food;
import com.thesis.entity.Record;
import org.apache.ibatis.annotations.Param;
import org.w3c.dom.stylesheets.LinkStyle;

import java.util.List;
import java.util.Map;

public interface RecordMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Record Record);

    int insertSelective(Record Record);

    Record selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Record Record);

    int updateByPrimaryKey(Record Record);

    List<Record> findPageList(@Param("Record") Record Record);

    Page<Record> findPageListByVague(@Param("queryParam") Record queryParam, @Param("vagueParam") String vagueParam);

    Integer deleteBatchByIds(List<Integer> idList);

    List<Record> selectAll();

    List<Record> selectClassListByProId(@Param("proId") Long proId);

    List<Map<String, Object>> findAllByTime(@Param("userId") String userId);

    List<Food> findList(@Param("record") Record record);

    List<Map<String, Object>> findAllByFood(@Param("userId") String userId);
}
